Optimal. Leaf size=186 \[ -\frac {2 d^3 \tan ^{-1}\left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right )}{a^3 (c-d)^3 \sqrt {c^2-d^2} f}-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {2845, 3057, 12,
2739, 632, 210} \begin {gather*} -\frac {2 d^3 \text {ArcTan}\left (\frac {c \tan \left (\frac {1}{2} (e+f x)\right )+d}{\sqrt {c^2-d^2}}\right )}{a^3 f (c-d)^3 \sqrt {c^2-d^2}}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 f (c-d)^3 \left (a^3 \sin (e+f x)+a^3\right )}-\frac {(2 c-7 d) \cos (e+f x)}{15 a f (c-d)^2 (a \sin (e+f x)+a)^2}-\frac {\cos (e+f x)}{5 f (c-d) (a \sin (e+f x)+a)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 2739
Rule 2845
Rule 3057
Rubi steps
\begin {align*} \int \frac {1}{(a+a \sin (e+f x))^3 (c+d \sin (e+f x))} \, dx &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {\int \frac {-a (2 c-5 d)-2 a d \sin (e+f x)}{(a+a \sin (e+f x))^2 (c+d \sin (e+f x))} \, dx}{5 a^2 (c-d)}\\ &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}+\frac {\int \frac {a^2 \left (2 c^2-7 c d+15 d^2\right )+a^2 (2 c-7 d) d \sin (e+f x)}{(a+a \sin (e+f x)) (c+d \sin (e+f x))} \, dx}{15 a^4 (c-d)^2}\\ &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )}-\frac {\int \frac {15 a^3 d^3}{c+d \sin (e+f x)} \, dx}{15 a^6 (c-d)^3}\\ &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )}-\frac {d^3 \int \frac {1}{c+d \sin (e+f x)} \, dx}{a^3 (c-d)^3}\\ &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )}-\frac {\left (2 d^3\right ) \text {Subst}\left (\int \frac {1}{c+2 d x+c x^2} \, dx,x,\tan \left (\frac {1}{2} (e+f x)\right )\right )}{a^3 (c-d)^3 f}\\ &=-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )}+\frac {\left (4 d^3\right ) \text {Subst}\left (\int \frac {1}{-4 \left (c^2-d^2\right )-x^2} \, dx,x,2 d+2 c \tan \left (\frac {1}{2} (e+f x)\right )\right )}{a^3 (c-d)^3 f}\\ &=-\frac {2 d^3 \tan ^{-1}\left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right )}{a^3 (c-d)^3 \sqrt {c^2-d^2} f}-\frac {\cos (e+f x)}{5 (c-d) f (a+a \sin (e+f x))^3}-\frac {(2 c-7 d) \cos (e+f x)}{15 a (c-d)^2 f (a+a \sin (e+f x))^2}-\frac {\left (2 c^2-9 c d+22 d^2\right ) \cos (e+f x)}{15 (c-d)^3 f \left (a^3+a^3 \sin (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 301, normalized size = 1.62 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (6 (c-d)^2 \sin \left (\frac {1}{2} (e+f x)\right )-3 (c-d)^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )+2 (2 c-7 d) (c-d) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2+(c-d) (-2 c+7 d) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3+2 \left (2 c^2-9 c d+22 d^2\right ) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4-\frac {30 d^3 \tan ^{-1}\left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^5}{\sqrt {c^2-d^2}}\right )}{15 a^3 (c-d)^3 f (1+\sin (e+f x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.58, size = 200, normalized size = 1.08
method | result | size |
derivativedivides | \(\frac {-\frac {-4 c +6 d}{\left (c -d \right )^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {2 \left (8 c -10 d \right )}{3 \left (c -d \right )^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}-\frac {2 \left (c^{2}-3 c d +3 d^{2}\right )}{\left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}-\frac {8}{5 \left (c -d \right ) \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{5}}+\frac {4}{\left (c -d \right ) \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{4}}-\frac {2 d^{3} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right )}{\left (c -d \right )^{3} \sqrt {c^{2}-d^{2}}}}{f \,a^{3}}\) | \(200\) |
default | \(\frac {-\frac {-4 c +6 d}{\left (c -d \right )^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {2 \left (8 c -10 d \right )}{3 \left (c -d \right )^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}-\frac {2 \left (c^{2}-3 c d +3 d^{2}\right )}{\left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}-\frac {8}{5 \left (c -d \right ) \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{5}}+\frac {4}{\left (c -d \right ) \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{4}}-\frac {2 d^{3} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right )}{\left (c -d \right )^{3} \sqrt {c^{2}-d^{2}}}}{f \,a^{3}}\) | \(200\) |
risch | \(-\frac {2 \left (-95 i d^{2} {\mathrm e}^{i \left (f x +e \right )}-9 c d +22 d^{2}-15 i c d \,{\mathrm e}^{3 i \left (f x +e \right )}+45 i c d \,{\mathrm e}^{i \left (f x +e \right )}+75 c d \,{\mathrm e}^{2 i \left (f x +e \right )}+75 i d^{2} {\mathrm e}^{3 i \left (f x +e \right )}-10 i c^{2} {\mathrm e}^{i \left (f x +e \right )}+15 d^{2} {\mathrm e}^{4 i \left (f x +e \right )}-20 c^{2} {\mathrm e}^{2 i \left (f x +e \right )}-145 d^{2} {\mathrm e}^{2 i \left (f x +e \right )}+2 c^{2}\right )}{15 \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )^{5} \left (c -d \right )^{3} f \,a^{3}}-\frac {d^{3} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+\frac {i c \sqrt {-c^{2}+d^{2}}+c^{2}-d^{2}}{\sqrt {-c^{2}+d^{2}}\, d}\right )}{\sqrt {-c^{2}+d^{2}}\, \left (c -d \right )^{3} f \,a^{3}}+\frac {d^{3} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+\frac {i c \sqrt {-c^{2}+d^{2}}-c^{2}+d^{2}}{\sqrt {-c^{2}+d^{2}}\, d}\right )}{\sqrt {-c^{2}+d^{2}}\, \left (c -d \right )^{3} f \,a^{3}}\) | \(331\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 850 vs.
\(2 (182) = 364\).
time = 0.42, size = 1789, normalized size = 9.62 \begin {gather*} \left [\frac {6 \, c^{4} - 12 \, c^{3} d + 12 \, c d^{3} - 6 \, d^{4} - 2 \, {\left (2 \, c^{4} - 9 \, c^{3} d + 20 \, c^{2} d^{2} + 9 \, c d^{3} - 22 \, d^{4}\right )} \cos \left (f x + e\right )^{3} + 2 \, {\left (4 \, c^{4} - 18 \, c^{3} d + 25 \, c^{2} d^{2} + 18 \, c d^{3} - 29 \, d^{4}\right )} \cos \left (f x + e\right )^{2} + 15 \, {\left (d^{3} \cos \left (f x + e\right )^{3} + 3 \, d^{3} \cos \left (f x + e\right )^{2} - 2 \, d^{3} \cos \left (f x + e\right ) - 4 \, d^{3} + {\left (d^{3} \cos \left (f x + e\right )^{2} - 2 \, d^{3} \cos \left (f x + e\right ) - 4 \, d^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt {-c^{2} + d^{2}} \log \left (\frac {{\left (2 \, c^{2} - d^{2}\right )} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2} + 2 \, {\left (c \cos \left (f x + e\right ) \sin \left (f x + e\right ) + d \cos \left (f x + e\right )\right )} \sqrt {-c^{2} + d^{2}}}{d^{2} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2}}\right ) + 6 \, {\left (3 \, c^{4} - 11 \, c^{3} d + 15 \, c^{2} d^{2} + 11 \, c d^{3} - 18 \, d^{4}\right )} \cos \left (f x + e\right ) - 2 \, {\left (3 \, c^{4} - 6 \, c^{3} d + 6 \, c d^{3} - 3 \, d^{4} - {\left (2 \, c^{4} - 9 \, c^{3} d + 20 \, c^{2} d^{2} + 9 \, c d^{3} - 22 \, d^{4}\right )} \cos \left (f x + e\right )^{2} - 3 \, {\left (2 \, c^{4} - 9 \, c^{3} d + 15 \, c^{2} d^{2} + 9 \, c d^{3} - 17 \, d^{4}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{30 \, {\left ({\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f + {\left ({\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f\right )} \sin \left (f x + e\right )\right )}}, \frac {3 \, c^{4} - 6 \, c^{3} d + 6 \, c d^{3} - 3 \, d^{4} - {\left (2 \, c^{4} - 9 \, c^{3} d + 20 \, c^{2} d^{2} + 9 \, c d^{3} - 22 \, d^{4}\right )} \cos \left (f x + e\right )^{3} + {\left (4 \, c^{4} - 18 \, c^{3} d + 25 \, c^{2} d^{2} + 18 \, c d^{3} - 29 \, d^{4}\right )} \cos \left (f x + e\right )^{2} + 15 \, {\left (d^{3} \cos \left (f x + e\right )^{3} + 3 \, d^{3} \cos \left (f x + e\right )^{2} - 2 \, d^{3} \cos \left (f x + e\right ) - 4 \, d^{3} + {\left (d^{3} \cos \left (f x + e\right )^{2} - 2 \, d^{3} \cos \left (f x + e\right ) - 4 \, d^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt {c^{2} - d^{2}} \arctan \left (-\frac {c \sin \left (f x + e\right ) + d}{\sqrt {c^{2} - d^{2}} \cos \left (f x + e\right )}\right ) + 3 \, {\left (3 \, c^{4} - 11 \, c^{3} d + 15 \, c^{2} d^{2} + 11 \, c d^{3} - 18 \, d^{4}\right )} \cos \left (f x + e\right ) - {\left (3 \, c^{4} - 6 \, c^{3} d + 6 \, c d^{3} - 3 \, d^{4} - {\left (2 \, c^{4} - 9 \, c^{3} d + 20 \, c^{2} d^{2} + 9 \, c d^{3} - 22 \, d^{4}\right )} \cos \left (f x + e\right )^{2} - 3 \, {\left (2 \, c^{4} - 9 \, c^{3} d + 15 \, c^{2} d^{2} + 9 \, c d^{3} - 17 \, d^{4}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{15 \, {\left ({\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f + {\left ({\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c^{5} - 3 \, a^{3} c^{4} d + 2 \, a^{3} c^{3} d^{2} + 2 \, a^{3} c^{2} d^{3} - 3 \, a^{3} c d^{4} + a^{3} d^{5}\right )} f\right )} \sin \left (f x + e\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 364, normalized size = 1.96 \begin {gather*} -\frac {2 \, {\left (\frac {15 \, {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (c\right ) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + d}{\sqrt {c^{2} - d^{2}}}\right )\right )} d^{3}}{{\left (a^{3} c^{3} - 3 \, a^{3} c^{2} d + 3 \, a^{3} c d^{2} - a^{3} d^{3}\right )} \sqrt {c^{2} - d^{2}}} + \frac {15 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 45 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 45 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 30 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 105 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 135 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 40 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 135 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 185 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 20 \, c^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 75 \, c d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 115 \, d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 7 \, c^{2} - 24 \, c d + 32 \, d^{2}}{{\left (a^{3} c^{3} - 3 \, a^{3} c^{2} d + 3 \, a^{3} c d^{2} - a^{3} d^{3}\right )} {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{5}}\right )}}{15 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.07, size = 466, normalized size = 2.51 \begin {gather*} \frac {2\,d^3\,\mathrm {atan}\left (\frac {\frac {d^3\,\left (-2\,a^3\,c^3\,d+6\,a^3\,c^2\,d^2-6\,a^3\,c\,d^3+2\,a^3\,d^4\right )}{a^3\,\sqrt {c+d}\,{\left (c-d\right )}^{7/2}}-\frac {2\,c\,d^3\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (a^3\,c^3-3\,a^3\,c^2\,d+3\,a^3\,c\,d^2-a^3\,d^3\right )}{a^3\,\sqrt {c+d}\,{\left (c-d\right )}^{7/2}}}{2\,d^3}\right )}{a^3\,f\,\sqrt {c+d}\,{\left (c-d\right )}^{7/2}}-\frac {\frac {2\,\left (7\,c^2-24\,c\,d+32\,d^2\right )}{15\,\left (c-d\right )\,\left (c^2-2\,c\,d+d^2\right )}+\frac {2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (4\,c^2-15\,c\,d+23\,d^2\right )}{3\,\left (c-d\right )\,\left (c^2-2\,c\,d+d^2\right )}+\frac {2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (c^2-3\,c\,d+3\,d^2\right )}{\left (c-d\right )\,\left (c^2-2\,c\,d+d^2\right )}+\frac {2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (2\,c^2-7\,c\,d+9\,d^2\right )}{\left (c-d\right )\,\left (c^2-2\,c\,d+d^2\right )}+\frac {2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (8\,c^2-27\,c\,d+37\,d^2\right )}{3\,\left (c-d\right )\,\left (c^2-2\,c\,d+d^2\right )}}{f\,\left (a^3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5+5\,a^3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+10\,a^3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3+10\,a^3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+5\,a^3\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+a^3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________